package com.platform.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.dao.StudyVideoDao;
import com.platform.entity.StudyVideoEntity;
import com.platform.service.StudyVideoService;

/**
 * Service实现类
 *
 * @author lipengjun
 * @email 939961241@qq.com
 * @date 2019-02-21 17:57:35
 */
@Service("studyVideoService")
public class StudyVideoServiceImpl implements StudyVideoService {
    @Autowired
    private StudyVideoDao studyVideoDao;

    @Override
    public StudyVideoEntity queryObject(Long id) {
        return studyVideoDao.queryObject(id);
    }

    @Override
    public List<StudyVideoEntity> queryList(Map<String, Object> map) {
        return studyVideoDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return studyVideoDao.queryTotal(map);
    }

    @Override
    public int save(StudyVideoEntity tStudyVideo) {
        return studyVideoDao.save(tStudyVideo);
    }

    @Override
    public int update(StudyVideoEntity tStudyVideo) {
        return studyVideoDao.update(tStudyVideo);
    }

    @Override
    public int delete(Long id) {
        return studyVideoDao.delete(id);
    }

    @Override
    public int deleteBatch(Long[] ids) {
        return studyVideoDao.deleteBatch(ids);
    }
}
